<nz-spin [nzTip]="'加载中...'" [nzSize]="'small'" [nzSpinning]="service.loading">
  <nz-layout>
    <nz-sider class="swagger-ui-sider" [nzWidth]="400">
      <ul nz-menu [nzMode]="'inline'" style="min-height: 100%;">
        <ng-container *ngFor="let tag of service.tags; index as i ">
          <li nz-submenu [nzOpen]="i == 0" *ngIf="tag.urls.length > 0">
            <div title>
              {{i+1}}. {{tag.name}}
              <span class="tag-desc">{{tag.description}}</span>
            </div>
            <ul>
              <li [class.ant-menu-item-selected]="d == 0 && i == 0" nz-menu-item *ngFor="let row of tag.urls; index as d" (click)="onSelect(row)">
                <div class="method method-{{row.method}}">{{row.method}}</div>
                <span>{{row.url}}</span>
                <span class="summary">{{row.summary}}</span>
              </li>
            </ul>
          </li>
        </ng-container>
      </ul>
    </nz-sider>
    <nz-content class="swagger-ui-content">
      <swagger-info [data]="current"></swagger-info>
    </nz-content>
  </nz-layout>

</nz-spin>
